package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
@TableName("orders")
public class OrderBean {
      @TableId(value = "id",type = IdType.AUTO)
      private Long id;
      @TableField("orderNum")
      private String orderNum;
      @TableField("totalPrice")
      private Double totalPrice;
      @TableField("date")
      private String date=String.valueOf(LocalDate.now());
      @TableField("delStatus")
      private int delStatus=1;
      @TableField("address")
      private String address;
      @TableField("modeOfPayment")
      private String modeOfPayment;
      @TableField("userNum")
      private Long userNum;
      @TableField("orderStatus")
      private int orderStatus;
      @TableField(exist = false)
      private List<ProductOrder> productOrders;
      
}
